// types/finance.ts
export interface IncomeRecord {
  id: number
  organizationId: number
  amount: number
  currency: string
  type: 'subscription' | 'one-time' | 'refund'
  description: string
  transactionDate: string
  status: 'completed' | 'pending' | 'failed'
  customerId?: number
  invoiceId?: number
  createdAt: string
  updatedAt: string
}

export interface CostConfig {
  id: number
  name: string
  description: string
  amount: number
  currency: string
  type: 'fixed' | 'variable' | 'usage-based'
  frequency: 'monthly' | 'quarterly' | 'yearly' | 'one-time'
  applicableFrom: string
  applicableTo?: string
  status: 'active' | 'inactive'
  createdAt: string
  updatedAt: string
}

export interface FinancialReport {
  id: number
  title: string
  type: 'income' | 'expense' | 'profit-loss'
  periodStart: string
  periodEnd: string
  data: any
  generatedBy: number
  generatedAt: string
  status: 'generated' | 'processing' | 'failed'
}